package com.typhoon.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shuya | dongfeng.zdf@alibaba-inc.com
 * @description
 * @date 2018/10/12 下午1:29
 * @description
 * @modified by
 * @since V2.0.0
 */
@RestController
public class IndexController {

    private final static Logger logger = LoggerFactory.getLogger(IndexController.class);

    @GetMapping("/hello")
    public String hello() {
        logger.info("print log ,string={}","hello");
        return "hello";
    }

    @GetMapping("/name")
    public String name() {
        return "my name is Typhoon";
    }


}
